const {src, dest, parallel} = require('gulp');
const minifyCSS = require('gulp-csso');
const concat = require('gulp-concat');
const jsmin=require('gulp-jsmin');

    function js() {
    return src('src/js/modules/*.js', {sourcemaps: true})
        .pipe(concat('fish-admin.min.js'))
        .pipe(jsmin())
        .pipe(dest('dist/js', {sourcemaps: true}))
}

function css() {
    return src('src/css/fish-admin.css', {sourcesmaps: true})
        .pipe(minifyCSS())
        .pipe(dest('dist/css'))
}

exports.js = js;
exports.css = css;
exports.default = parallel(css, js);

